<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>从一到一百的素数</title>
</head>

<body>
	<p>从一到一百的素数有：
	  <script>
	    for(var s=2 ; s<100 ; s++){
	    	var a = 1;
		for(var j = 2; j < s; j++){
		    if(s%j == 0){
			a = 2 ;
		    }
		}
		if(a==1){
		    document.write(s+",");
		}
	    }	
     </script>
 </p>
</body>
</html>
